package h0721;

import java.util.Scanner;
import java.util.regex.Pattern;
/**
  * @description 拼接URL
  * @author 不知名帅哥
  * @date 2024/7/21 23:20
  * @version 1.0
*/
public class JoinUrl {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String[] strings = sc.nextLine().split(",");
        StringBuilder sb = new StringBuilder();
        for (String string : strings) {
            if (string!=""){ //TODO 注意特殊情况的判断  null,xxx  xxx,null
                String temp = string.replaceAll("[^a-z0-9]", "");
                sb.append("/").append(temp);
            }
        }
        String res = sb.toString();
        if (res.length()==0){ //TODO 注意特殊情况的判断  null,null
            System.out.println("/");
        }else {
            System.out.println(res);
        }
    }
}
